module.exports = {
    devServer: {
        open: process.platform === "darwin",
        host: "0.0.0.0",
        port: 8088,
        https: false,
        hotOnly: false,
        proxy:{
          '/api':{
            target:'http://localhost:8080',
            changeOrigin:true,
            secure:true,
            pathRewrite:{
              '^/api':''
            }
          }
        }
    },
    //publicPath: '/cesiumtest2/',
    //assetsDir: 'static'
    configureWebpack:{
      module: {
          rules: [
              {
                  test: /\.mjs$/,
                  include: /node_modules/,
                  type: "javascript/auto"
              },
          ]
      }
  }
}